#ifndef SOCKETEXCEPTION_H
#define SOCKETEXCEPTION_H

#include <stdexcept>
#include <string>
#include <winsock2.h>

class SocketException: public std::exception
{
public:
	// Platform specific error codes
	SocketException(int error=0);
	~SocketException();

	virtual const char* what() const throw();

private:
	int errorcode;

	std::string errorstring;
};

#endif // SOCKETEXCEPTION_H

